package com.aabte.auth.account.resource.api.role;

import com.aabte.commons.bean.BaseResponse;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import javax.validation.Valid;

@RequestMapping(path = "/v1/role", consumes = MediaType.APPLICATION_JSON_VALUE,
        produces = MediaType.APPLICATION_JSON_VALUE)
public interface RoleApi {

    @RequestMapping(path = "/", method = RequestMethod.POST)
    BaseResponse<String> create(@RequestBody @Valid CreateRoleCommand command);

    @RequestMapping(path = "/", method = RequestMethod.DELETE)
    BaseResponse<Boolean> delete(@RequestParam(name = "role_id") String roleId);

}
